package com.appspot.etao.service;

import java.util.List;

import javax.jdo.PersistenceManager;

import com.appspot.etao.jdo.PMF;
import com.appspot.etao.model.ShopModel;

public class ShopService extends BaseService {

	public List<ShopModel> getShopList() {
		PersistenceManager pm = PMF.get().getPersistenceManager();
		
		String shopQuery = "select from " + ShopModel.class.getName();
		List<ShopModel> shopList = (List<ShopModel>)pm.newQuery(shopQuery).execute();
		
		pm.close();
		
		return shopList;
	}
}
